﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="PS_EmployeeFind.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.PS_EmployeeFind" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register src="../Controls/user.ascx" tagname="user" tagprefix="uc4" %>
<%@ Register src="../Controls/DatePicker.ascx" tagname="DatePicker" tagprefix="uc2" %>

<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">  

    <script type="text/javascript" src="../../Scripts/Common.js"></script>    
    <script type="text/javascript">
        var cancelDropDownClosing = false;

      function isNumberKey(event)  // ตัวเลขอย่างเดียว
      {
         var charCode = (event.which) ? event.which : event.keyCode
         if(charCode > 31 && (charCode < 48 || charCode > 57))
         {
//                 alert("กรอกได้แต่ตัวเลขครับ!")
             return false;
          }
         return true;
      }

        function onTextChange(sender) 
        {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
                }
                function setCalendarDateAgeTable() {
                    var tooltip = $find("<%= ToolTipDateAge.ClientID %>");
                    var calendar = $find("<%= CalendarDateAge.ClientID %>");
                    var fastNavigation = calendar._getFastNavigation();
                    fastNavigation.OnToday =
                        function() {
                            var today = new Date;
                            var date = [today.getFullYear(), today.getMonth() + 1, today.getDate()];
                            calendar.selectDate(date, true);
                            fastNavigation.Popup.Hide();
                            var all_date = date.toString().split(",");
                            var year = parseInt(all_date[0]) + 543;
                            var month = all_date[1];
                            var day = all_date[2];
                            if (day.length == 1) {
                                day = '0' + day;
                            }
                            if (month.length == 1) {
                                month = '0' + month;
                            }

                            var maskText = $find("<%= txtDateExpired.ClientID %>");
                            maskText.set_value(day + month + year);
                            tooltip.hide();
                        }
                }
                function OnDateAgeClick(calendarInstance, args) {
                    var tooltip = $find("<%= ToolTipDateAge.ClientID %>");
                    var fastNavigation = calendarInstance._getFastNavigation();
                    var date = args.get_renderDay().get_date().toString();
                    var all_date = date.split(",");
                    var year = parseInt(all_date[0]) + 543;
                    var month = all_date[1];
                    var day = all_date[2];
                    if (day.length == 1) {
                        day = '0' + day;
                    }
                    if (month.length == 1) {
                        month = '0' + month;
                    }

                    var maskText = $find("<%= txtDateAge.ClientID %>");
                    maskText.set_value(day + month + year);
                    tooltip.hide();
                }
                function OnCalendarDateAgeViewChanged(sender, step) {
                    var year = parseInt(sender.FocusedDate[0]) + 543;
                    var month = sender.FocusedDate[1];
                    document.getElementById("CalendarDateAge_Title").innerHTML = changeMonthNumberToName(month) + " " + year;
                }

    </script>

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSelectPosition">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectFieldPosition" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSelectDegree">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectDegree" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSelectQual">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectQual" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSelectMajor">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectMajor" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSelectIns">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectInstitutes" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            
            <telerik:AjaxSetting AjaxControlID="btnMovePosition">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectFieldPosition" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnMoveDegree">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectDegree" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnMoveQual">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectQual" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnMoveMajor">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectMajor" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnMoveIns">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="selectInstitutes" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" 
        Height="100%" Width="75px" Transparency="50">
        <table style="height: 100%; width: 100%" border="0">
            <tr>
                <td width="100%" align="center" valign="middle">
                    <img alt="Loading..." 
                        src="../Images/Buttons/loading.gif" 
                        style="border: 0px;" />
                </td>
            </tr>
        </table>
    </telerik:RadAjaxLoadingPanel>   
    
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
    <telerik:RadWindow 
        id="ProjectDtls" 
        runat="server"
        showcontentduringload="false"
        VisibleStatusbar="false"
        title="รายการโยกย้าย"
        width="1100px"
        Height="600px"        
        Modal="true"
        behaviors="Close">
    </telerik:RadWindow>
</Windows>

</telerik:RadWindowManager>
    
    <title>สอบถามข้อมูลบุคลากรตามเงื่อนไข</title>
    <link href="../../Styles/CssClass.css" rel="cssclass" type="text/css" /> 
    <link href="../../Styles/StyleSheet.css" rel="stylesheet" type="text/css" /> 
      <asp:panel ID="Panel6" runat="server" >
    <table width="1000" cellpadding="0" cellspacing="0">
        <tr>
            <td width="280" valign = "top">
                
                <uc4:user ID="user1" runat="server" />
                
            </td>
            
            <td width="20" ></td>
            
            <td>            

            <asp:Panel ID="panelCommand" runat="server">
                <div class="bigModuleRight">
                    <div class="bigModuleBottomRight">
                        <table cellpadding="0" cellspacing="0">
                            <tr class="command-list">
                                <td class="command-item" style="border: none">
                                    <asp:LinkButton ID="ShowGrid" runat="server" CssClass="LinkButton" onclick="ShowGrid_Click" CausesValidation="false">
                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Images/Buttons/table.gif" />&nbsp;&nbsp;แสดงข้อมูลทั้งหมด
                                    </asp:LinkButton>                        
                                </td>
                                <td class="command-item">
                                    <asp:LinkButton ID="AddNew" runat="server" CssClass="LinkButton" onclick="AddNew_Click">
                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Images/Buttons/AddRecord.gif" />&nbsp;&nbsp;เพิ่มข้อมูลใหม่
                                    </asp:LinkButton>
                                </td>
                                <td class="command-item">
                                    <asp:LinkButton ID="Edit" runat="server" CssClass="LinkButton"  visible="false" OnClick="Edit_Click">
                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Images/Buttons/Edit.gif" />&nbsp;&nbsp;แก้ไขข้อมูล
                                    </asp:LinkButton>
                                </td>
                                <td class="command-item">
                                    <asp:LinkButton ID="Delete" runat="server" CssClass="LinkButton" OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')" OnClick="Delete_Click">
                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Images/Buttons/Delete.gif" />&nbsp;&nbsp;ลบข้อมูล
                                    </asp:LinkButton>
                                </td>
                                <td class="command-item">
                                    <asp:LinkButton ID="AddNewSave" runat="server" CssClass="LinkButton" Visible="false" onclick="AddNewSave_Click">
                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Images/Buttons/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                    </asp:LinkButton>
                                </td>
                                <td class="command-item">
                                    <asp:LinkButton ID="EditSave" runat="server" CssClass="LinkButton" Visible="false" onclick="EditSave_Click">
                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Images/Buttons/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                    </asp:LinkButton>
                                </td>
                                <td class="command-item">
                                    <asp:LinkButton ID="Cancel" runat="server" CssClass="LinkButton" Visible="false" onclick="Cancel_Click" CausesValidation="false">
                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Images/Buttons/Cancel.gif" />&nbsp;&nbsp;ยกเลิก
                                    </asp:LinkButton>
                                </td>
                                <td class="command-item">
                                    <asp:LinkButton ID="Help" runat="server" CssClass="LinkButton" Visible="false">
                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Images/Buttons/help3.gif" />&nbsp;&nbsp;ช่วยเหลือ
                                    </asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>        
            </asp:Panel>
        </td>
      </tr>
      <tr>
      <td colspan = "3">
        <div class="moduleDivSlim1000x450">
        <div class="moduleDivBottom1000">
            <asp:Panel ID="panel1" runat="server">
                <div class="header-grid">
                    <asp:Label ID="Label1" runat="server" Text="เงื่อนไขในการค้นหาข้อมูลบุคลากร"></asp:Label>
                </div>
            </asp:Panel>
            <asp:Panel CssClass="panelList" runat="server" ID="panelList" ScrollBars="Auto">
                <table>
                    <tr>
                        <td width="100%">
                            <ul class="formListItem" id="Ul1">
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px">
                                                ประเภทบุคลากร :
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="lblEmployeeType" AssociatedControlID="cmbEmployeeType"></asp:Label>
                                                <telerik:RadComboBox ID="cmbEmployeeType" runat="server" 
                                                      CausesValidation="false" 
                                                      DataTextField="Name" 
                                                      DataValueField="Sequence" 
                                                      EmptyMessage="... เลือกทั้งหมด..." 
                                                      Filter="Contains" 
                                                      OnClientTextChange="onTextChange" 
                                                      Width="200px">
                                                  </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                </div>   
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px">
                                                สังกัดตามโครงสร้างกฏกระทรวง :
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="lblJobSite" AssociatedControlID="cmbJobSite"></asp:Label>
                                                <telerik:RadComboBox ID="cmbJobSite" runat="server" AllowCustomText="true" 
                                                    CausesValidation="false" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                                    EnableLoadOnDemand="true" EnableTextSelection="true" 
                                                    EnableVirtualScrolling="true" Filter="Contains" Height="230px" 
                                                    HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                    OnClientTextChange="onTextChange" 
                                                    OnItemsRequested="cmbJobSite_ItemsRequested" 
                                                    ShowDropDownOnTextboxClick="true" ShowMoreResultsBox="true" Width="300px" 
                                                    ZIndex="8001">
                                                    <HeaderTemplate>
                                                        <table cellpadding="0" cellspacing="0" width="300">
                                                            <tr>
                                                                <td align="center" width="300px">
                                                                    <b>ชื่อหน่วยงาน</b></td>
                                                            </tr>
                                                        </table>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:Table ID="tableJobSite" runat="server" CellPadding="0" CellSpacing="0">
                                                        </asp:Table>
                                                    </ItemTemplate>
                                                </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px">
                                                สังกัดตามโครงสร้างการบริหารจัดการ :
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="lblWorkingJobSite" AssociatedControlID="cmbWorkingJobSite"></asp:Label>
                                                <telerik:RadComboBox ID="cmbWorkingJobSite" runat="server" AllowCustomText="true" 
                                                    CausesValidation="false" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                                    EnableLoadOnDemand="true" EnableTextSelection="true" 
                                                    EnableVirtualScrolling="true" Filter="Contains" Height="230px" 
                                                    HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                    OnClientTextChange="onTextChange" 
                                                    OnItemsRequested="cmbWorkingJobSite_ItemsRequested" 
                                                    ShowDropDownOnTextboxClick="true" ShowMoreResultsBox="true" Width="300px" 
                                                    ZIndex="8001">
                                                    <HeaderTemplate>
                                                        <table cellpadding="0" cellspacing="0" width="300">
                                                            <tr>
                                                                <td align="center" width="300px">
                                                                    <b>ชื่อหน่วยงาน</b></td>
                                                            </tr>
                                                        </table>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:Table ID="tableWorkingJobSite" runat="server" CellPadding="0" CellSpacing="0">
                                                        </asp:Table>
                                                    </ItemTemplate>
                                                </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px">
                                                อายุตัวครบ :
                                            </td>
                                            <td>       
                                                <asp:Label runat="server" ID="lblAge" AssociatedControlID="txtAge"></asp:Label>
                                                <telerik:RadTextBox ID="txtAge" Runat="server" MaxLength="10" Skin="Outlook" Width="100px">
                                                </telerik:RadTextBox>                      
                                            </td>
                                            <td>
                                                เมื่อวันที่ :
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="lblDateAge" AssociatedControlID="txtDateAge"></asp:Label>
                                                <telerik:RadMaskedTextBox ID="txtDateAge" runat="server" Mask=" ##/##/####" Width="75px" TextWithLiterals=" //" SelectionOnFocus="SelectAll"></telerik:RadMaskedTextBox>
                                                <asp:LinkButton ID="LinkButton4" runat="server" CssClass="LinkButton">
                                                    <img alt="" src="../Images/Buttons/Calendar.gif" style="border:0px;vertical-align:middle;" />
                                                </asp:LinkButton>
                                                <telerik:RadToolTip ID="ToolTipDateAge" runat="server" 
                                                    Animation="None" HideEvent="LeaveToolTip" 
                                                    Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                                    TargetControlID="LinkButton4" Modal="true">
                                                    <telerik:RadCalendar id="CalendarDateAge" runat="server" 
                                                        TitleFormat="MMMM yyyy" 
                                                        EnableMultiSelect="false" 
                                                        UseRowHeadersAsSelectors="false" 
                                                        UseColumnHeadersAsSelectors="false" 
                                                        DayCellToolTipFormat="dddd, dd MMMM, yyyy" 
                                                        NavigationPrevToolTip="เดือนก่อนหน้า" 
                                                        NavigationNextToolTip="เดือนถัดไป" 
                                                        FastNavigationNextToolTip="3 เดือนถัดไป" 
                                                        FastNavigationPrevToolTip="3 เดือนก่อนหน้า">
                                                        <ClientEvents OnDateClick="OnCalendarDateAgeClick" 
                                                            OnCalendarViewChanged="OnCalendarDateAgeViewChanged">
                                                        </ClientEvents>
                                                        <FastNavigationSettings EnableTodayButtonSelection="true" 
                                                            TodayButtonCaption="ไปที่วันนี้" 
                                                            OkButtonCaption="เปลี่ยน" 
                                                            CancelButtonCaption="ยกเลิก" />
                                                    </telerik:RadCalendar>
                                                </telerik:RadToolTip>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px">
                                                บรรจุตั้งแต่วันที่ :
                                            </td>
                                            <td>       
                                                <asp:Label runat="server" ID="lblDateAdmittedStart" AssociatedControlID="txtDateAdmittedStart"></asp:Label>
                                                <telerik:RadMaskedTextBox ID="txtDateAdmittedStart" runat="server" Mask=" ##/##/####" Width="75px" TextWithLiterals=" //" SelectionOnFocus="SelectAll"></telerik:RadMaskedTextBox>
                                                <asp:LinkButton ID="LinkButton5" runat="server" CssClass="LinkButton">
                                                    <img alt="" src="../Images/Buttons/Calendar.gif" style="border:0px;vertical-align:middle;" />
                                                </asp:LinkButton>
                                                <telerik:RadToolTip ID="ToolTipDateAdmittedStart" runat="server" 
                                                    Animation="None" HideEvent="LeaveToolTip" 
                                                    Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                                    TargetControlID="LinkButton5" Modal="true">
                                                    <telerik:RadCalendar id="CalendarDateAdmittedStart" runat="server" 
                                                        TitleFormat="MMMM yyyy" 
                                                        EnableMultiSelect="false" 
                                                        UseRowHeadersAsSelectors="false" 
                                                        UseColumnHeadersAsSelectors="false" 
                                                        DayCellToolTipFormat="dddd, dd MMMM, yyyy" 
                                                        NavigationPrevToolTip="เดือนก่อนหน้า" 
                                                        NavigationNextToolTip="เดือนถัดไป" 
                                                        FastNavigationNextToolTip="3 เดือนถัดไป" 
                                                        FastNavigationPrevToolTip="3 เดือนก่อนหน้า">
                                                        <ClientEvents OnDateClick="OnCalendarDateAdmittedStartClick" 
                                                            OnCalendarViewChanged="OnCalendarDateAdmittedStartViewChanged">
                                                        </ClientEvents>
                                                        <FastNavigationSettings EnableTodayButtonSelection="true" 
                                                            TodayButtonCaption="ไปที่วันนี้" 
                                                            OkButtonCaption="เปลี่ยน" 
                                                            CancelButtonCaption="ยกเลิก" />
                                                    </telerik:RadCalendar>
                                                </telerik:RadToolTip>                      
                                            </td>
                                            <td>
                                                ถึงวันที่ :
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="lblDateAdmittedEnd" AssociatedControlID="txtDateAdmittedEnd"></asp:Label>
                                                <telerik:RadMaskedTextBox ID="txtDateAdmittedEnd" runat="server" Mask=" ##/##/####" Width="75px" TextWithLiterals=" //" SelectionOnFocus="SelectAll"></telerik:RadMaskedTextBox>
                                                <asp:LinkButton ID="LinkButton6" runat="server" CssClass="LinkButton">
                                                    <img alt="" src="../Images/Buttons/Calendar.gif" style="border:0px;vertical-align:middle;" />
                                                </asp:LinkButton>
                                                <telerik:RadToolTip ID="RadToolTip1" runat="server" 
                                                    Animation="None" HideEvent="LeaveToolTip" 
                                                    Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                                    TargetControlID="LinkButton6" Modal="true">
                                                    <telerik:RadCalendar id="RadCalendar1" runat="server" 
                                                        TitleFormat="MMMM yyyy" 
                                                        EnableMultiSelect="false" 
                                                        UseRowHeadersAsSelectors="false" 
                                                        UseColumnHeadersAsSelectors="false" 
                                                        DayCellToolTipFormat="dddd, dd MMMM, yyyy" 
                                                        NavigationPrevToolTip="เดือนก่อนหน้า" 
                                                        NavigationNextToolTip="เดือนถัดไป" 
                                                        FastNavigationNextToolTip="3 เดือนถัดไป" 
                                                        FastNavigationPrevToolTip="3 เดือนก่อนหน้า">
                                                        <ClientEvents OnDateClick="OnCalendarDateAgeClick" 
                                                            OnCalendarViewChanged="OnCalendarDateAgeViewChanged">
                                                        </ClientEvents>
                                                        <FastNavigationSettings EnableTodayButtonSelection="true" 
                                                            TodayButtonCaption="ไปที่วันนี้" 
                                                            OkButtonCaption="เปลี่ยน" 
                                                            CancelButtonCaption="ยกเลิก" />
                                                    </telerik:RadCalendar>
                                                </telerik:RadToolTip>
                                            </td>
                                        </tr>
                                    </table>
                                </div>         
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px" valign="top">
                                                ประเภทตำแหน่ง :                                                
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkPosType" runat="server" Text="เลือกทั้งหมด" />
                                                <asp:Label runat="server" ID="lblSelectPosType"></asp:Label>
                                                <asp:CheckBoxList ID="cblPosType" runat="server" 
                                                    DataTextField="pos_type_name" 
                                                    DataValueField="pos_type_seq" 
                                                    RepeatDirection="Horizontal">
                                                </asp:CheckBoxList>
                                            </td>
                                            <td width = "120px" valign="top">
                                                ระดับตำแหน่ง :                                                
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkClass" runat="server" Text="เลือกทั้งหมด" />                                              
                                                <asp:Label runat="server" ID="lblSelectClass"></asp:Label>
                                                <asp:CheckBoxList ID="cblClass" runat="server" 
                                                    DataTextField="class_name" 
                                                    DataValueField="class_seq" 
                                                    RepeatDirection="Horizontal">
                                                </asp:CheckBoxList>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                      
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px" valign="top">
                                                ดำรงตำแหน่ง :
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="lblFieldPosition" AssociatedControlID="cmbFieldPosition"></asp:Label>                                                
                                                <telerik:RadComboBox ID="cmbFieldPosition" runat="server" AllowCustomText="true" 
                                                    CausesValidation="false" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                                    EnableLoadOnDemand="true" EnableTextSelection="true" 
                                                    EnableVirtualScrolling="true" Filter="Contains" Height="230px" 
                                                    HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                    OnClientTextChange="onTextChange" 
                                                    OnItemsRequested="cmbFieldPosition_ItemsRequested" 
                                                    ShowDropDownOnTextboxClick="true" ShowMoreResultsBox="true" Width="300px" 
                                                    ZIndex="8001">
                                                    <HeaderTemplate>
                                                        <table cellpadding="0" cellspacing="0" width="300">
                                                            <tr>
                                                                <td align="center" width="300px">
                                                                    <b>ชื่อตำแหน่ง</b>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:Table ID="tableFieldPosition" runat="server" CellPadding="0" CellSpacing="0"></asp:Table>
                                                    </ItemTemplate>
                                                </telerik:RadComboBox>
                                            </td>
                                            <td width = "120px" valign="top">
                                                ระยะเวลาการดำรงตำแหน่ง :
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="lblFieldDuration" AssociatedControlID="txtFieldDuration"></asp:Label>
                                                <telerik:RadNumericTextBox ID="txtFieldDuration" Runat="server" Width="100px" Skin="Outlook">
                                                </telerik:RadNumericTextBox> ปี
                                            </td>
                                        </tr>
                                    </table>
                                </div>        
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px">
                                                ระดับการศึกษา :
                                            </td>
                                            <td>
                                                <asp:Label runat="server" ID="lblDegree" AssociatedControlID="cmbDegree"></asp:Label>
                                                <telerik:RadComboBox ID="cmbDegree" runat="server" 
                                                    CausesValidation="false" 
                                                    DataTextField="Name" 
                                                    DataValueField="Sequence" 
                                                    AllowCustomText = "true"
                                                    EmptyMessage="... พิมพ์ที่นี่เพื่อค้นหา..."
                                                    Filter="Contains" 
                                                    OnClientTextChange="onTextChange" Width="300px">
                                                </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px">
                                                วุฒิการศึกษา :
                                            </td>
                                            <td align="center" style="padding-top: 5px">
                                                <asp:ListBox ID="lstEduQual" runat="server" Width="97%" Height="320px" 
                                                    SelectionMode="Multiple">
                                                </asp:ListBox>
                                            </td>
                                            <td align="center"  style="padding-top: 5px">
                                                <asp:Button ID="btnSelect" runat="server" Text=">"  OnClick="btnSelect_Cleck"/>
                                                <br />
                                                <br />
                                                <asp:Button ID="btnSelectAll" runat="server" Text=">>>" OnClick="btnSelectAll_Cleck" />
                                                <br />
                                                <br />
                                                <asp:Button ID="btnRemove" runat="server" Text="<" OnClick="btnRemove_Cleck" />
                                                <br />
                                                <br />
                                                <asp:Button ID="btnRemoveAll" runat="server" Text="<<<" OnClick="btnRemoveAll_Cleck" />
                                            </td>
                                            <td align="center" style="padding-top: 5px">
                                                <asp:ListBox ID="selectEduQual" runat="server" Width="97%" Height="320px" 
                                                    SelectionMode="Multiple"></asp:ListBox>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="formList-detail">
                                    <table>
                                        <tr>
                                            <td width = "120px">
                                                สาขาวิชาเอก :
                                            </td>
                                            <td align="center" style="padding-top: 5px">
                                                <asp:ListBox ID="lstMajor" runat="server" Width="97%" Height="320px" 
                                                    SelectionMode="Multiple">
                                                </asp:ListBox>
                                            </td>
                                            <td align="center"  style="padding-top: 5px">
                                                <asp:Button ID="btnSelectMajor" runat="server" Text=">"  OnClick="btnSelect_Cleck"/>
                                                <br />
                                                <br />
                                                <asp:Button ID="btnSelectAllMajor" runat="server" Text=">>>" OnClick="btnSelectAll_Cleck" />
                                                <br />
                                                <br />
                                                <asp:Button ID="btnRemoveMajor" runat="server" Text="<" OnClick="btnRemove_Cleck" />
                                                <br />
                                                <br />
                                                <asp:Button ID="btnRemoveAllMajor" runat="server" Text="<<<" OnClick="btnRemoveAll_Cleck" />
                                            </td>
                                            <td align="center" style="padding-top: 5px">
                                                <asp:ListBox ID="selectMajor" runat="server" Width="97%" Height="320px" 
                                                    SelectionMode="Multiple">
                                                </asp:ListBox>
                                            </td>
                                        </tr>
                                    </table>
                                </div>

                            </ul>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
             <asp:Panel CssClass="panelGrid" ID="panelGrid" runat="server" ScrollBars="Auto" Visible="true">
                <div align="center">
                    <telerik:RadGrid ID="Grid" 
                        runat="server" 
                        AutoGenerateColumns="false"
                        AllowMultiRowEdit="false" 
                        AllowMultiRowSelection="true" 
                        ShowStatusBar="true"
                        Width="700px" Height="330px" 
                        AllowPaging="true" 
                        AllowFilteringByColumn="false"
                        GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                        GroupingSettings-GroupContinuedFormatString=""
                        GroupingSettings-GroupContinuesFormatString=""
                        GroupingSettings-GroupSplitFormat="" PageSize ="7" 
                        OnItemCommand="Grid_ItemCommand" align ="left">
                        <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" GroupLoadMode="Client"
                        ShowGroupFooter="true" 
                        DataKeyNames="Seq" 
                        ClientDataKeyNames = "Seq"
                        NoMasterRecordsText="< ไม่มีข้อมูล >" 
                        GroupsDefaultExpanded="true">
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="20px" />
                        </ExpandCollapseColumn>
                        <Columns>                       
                            <telerik:GridBoundColumn 
                                DataField="emp_seq" 
                                DataType="System.Int32" 
                                HeaderText="emp_seq" 
                                UniqueName="emp_seq"   
                                Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn 
                                DataField="pos_ref" 
                                HeaderText="เลขที่ตำแหน่ง" 
                                UniqueName="pos_ref"                     
                                FilterControlWidth="100%"
                                AutoPostBackOnFilter="true" 
                                CurrentFilterFunction="Contains" 
                                HeaderStyle-HorizontalAlign = "Center"
                                ShowFilterIcon="False">
                                <HeaderStyle Width = "90px" />
                                <ItemStyle HorizontalAlign = "Center" Width = "90px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn 
                                DataField="full_name" 
                                HeaderText="ชื่อ - นามสกุล" 
                                UniqueName="full_name"  
                                FilterControlWidth="100%" 
                                AutoPostBackOnFilter="true"
                                CurrentFilterFunction="Contains"
                                HeaderStyle-HorizontalAlign = "Center" 
                                HeaderStyle-Width = "150px"
                                ItemStyle-Width = "150px"
                                ShowFilterIcon="False">
                            </telerik:GridBoundColumn>    
                            <telerik:GridBoundColumn 
                                DataField="pos_name" 
                                HeaderText="ตำแหน่ง" 
                                UniqueName="pos_name"  
                                FilterControlWidth="100%" 
                                AutoPostBackOnFilter="true"
                                CurrentFilterFunction="Contains"
                                HeaderStyle-HorizontalAlign = "Center" 
                                HeaderStyle-Width = "150px"
                                ItemStyle-Width = "150px"
                                ShowFilterIcon="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn 
                                DataField="class_name" 
                                HeaderText="ระดับตำแหน่ง" 
                                UniqueName="class_name"  
                                FilterControlWidth="100%" 
                                AutoPostBackOnFilter="true"
                                CurrentFilterFunction="Contains" 
                                HeaderStyle-HorizontalAlign = "Center"
                                HeaderStyle-Width = "200px"
                                ItemStyle-Width = "200px"
                                ShowFilterIcon="False">
                            </telerik:GridBoundColumn>
                             <telerik:GridBoundColumn 
                                DataField="job_site_name" 
                                HeaderText="สังกัดตามโครงสร้าง<br>กฏกระทรวง" 
                                UniqueName="job_site_name"  
                                FilterControlWidth="100%" 
                                AutoPostBackOnFilter="true"
                                CurrentFilterFunction="Contains" 
                                HeaderStyle-HorizontalAlign = "Center"
                                HeaderStyle-Width = "150px"
                                ItemStyle-Width = "150px"
                                ShowFilterIcon="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn 
                                DataField="working_job_site_name" 
                                HeaderText="สังกัดตามโครงสร้าง<br>การบริหารจัดการภายใน" 
                                UniqueName="working_job_site_name"  
                                FilterControlWidth="100%" 
                                AutoPostBackOnFilter="true"
                                CurrentFilterFunction="Contains" 
                                HeaderStyle-HorizontalAlign = "Center"
                                HeaderStyle-Width = "150px"
                                ItemStyle-Width = "150px"
                                ShowFilterIcon="False">
                            </telerik:GridBoundColumn>   
                         </Columns>               
                        <PagerStyle Mode="NumericPages" AlwaysVisible="true" 
                            FirstPageToolTip="กลับหน้าแรก" LastPageToolTip="ไปหน้าสุดท้าย" 
                            NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป" 
                            PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" />
                        </MasterTableView>
                        <GroupingSettings GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;" 
                            GroupContinuedFormatString="" GroupContinuesFormatString="" 
                            GroupSplitFormat="" />
                        <ClientSettings EnableRowHoverStyle="True">
                            <Selecting AllowRowSelect="true" />
                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                        </ClientSettings>
                  </telerik:RadGrid>
                </div>
            </asp:Panel>
        </div>
        </div>
      </td>      
      </tr>
    </table>
</asp:panel>

</asp:Content>
